mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 16:38:00 +00:00
b77a48c628
* tests: initialize char* in mode test Currently, test_mode_result relies on undefined behavior. The test calls mode_result, which checks whether the pointer is NULL. However, the pointer was never initialized, so it may or may not be NULL, depending on the compiler. This caused a test failure on ppc64 and Fedora 28, apparently because in this setting, gcc sets uninitialized pointers to NULL. By initializing the pointer to the empty string, the behavior is defined and the test passes on all architectures. * mode: fix input pointer check in mode_result Do not check whether *input (i.e., the char* the input points to) is NULL, as this is valid. Instead, check whether the input itself is NULL. * tests: make char* input arg in test_mode_result modifiable The function mode_result expects a modifiable char*, initialize the argument properly so it can be modified. |
||
---|---|---|
.. | ||
box-test.c | ||
convert_old_theme_test.sh | ||
default_theme_test.sh | ||
help_output_test.sh | ||
helper-config-cmdline-parser.c | ||
helper-expand.c | ||
helper-pidfile.c | ||
helper-test.c | ||
helper-tokenize.c | ||
history-test.c | ||
mode-test.c | ||
run_all_tests.sh | ||
run_combi_test.sh | ||
run_dmenu_custom_test.sh | ||
run_dmenu_empty.sh | ||
run_dmenu_issue_292.sh | ||
run_dmenu_normal_window_test.sh | ||
run_dmenu_test.sh | ||
run_drun_test.sh | ||
run_errormsg_test.sh | ||
run_glob_test.sh | ||
run_issue333_test.sh | ||
run_issue_256.sh | ||
run_issue_275.sh | ||
run_regex_test.sh | ||
run_run_test.sh | ||
run_screenshot_test.sh | ||
run_script_test.sh | ||
run_switchdialog_test.sh | ||
run_test.sh | ||
run_window_test.sh | ||
scrollbar-test.c | ||
test_script.sh | ||
textbox-test.c | ||
theme-parser-test.c | ||
widget-test.c | ||
xr_dump_test.sh |