Skip to content

Commit

Permalink
Avoid C++-style comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
aborodin committed Jan 16, 2013
1 parent ae6e647 commit 9423f3f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/lib/mcconfig/config_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ main (void)

suite_add_tcase (s, tc_core);
sr = srunner_create (s);
// srunner_set_fork_status (sr, CK_NOFORK);
/* srunner_set_fork_status (sr, CK_NOFORK); */
srunner_run_all (sr, CK_NORMAL);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/mcconfig/user_configs_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ main (void)
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "user_configs_path.log");
// srunner_set_fork_status (sr, CK_NOFORK);
/* srunner_set_fork_status (sr, CK_NOFORK); */
srunner_run_all (sr, CK_NORMAL);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
Expand Down
12 changes: 6 additions & 6 deletions tests/lib/name_quote.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ static const struct data_source1_struct

START_TEST (quote_percent_test)
{
// given
/* given */
char *actual_string;
const struct data_source1_struct test_data = data_source1[_i];

// when
/* when */
actual_string = name_quote (test_data.input_string, test_data.input_quote_percent);

// then
/* then */
g_assert_cmpstr (actual_string, ==, test_data.expected_string);

g_free (actual_string);
Expand Down Expand Up @@ -95,14 +95,14 @@ static const struct data_source2_struct

START_TEST (name_quote_test)
{
// given
/* given */
char *actual_string;
const struct data_source2_struct test_data = data_source2[_i];

// when
/* when */
actual_string = name_quote (test_data.input_string, FALSE);

// then
/* then */
g_assert_cmpstr (actual_string, ==, test_data.expected_string);

g_free (actual_string);
Expand Down
6 changes: 3 additions & 3 deletions tests/src/filemanager/exec_get_export_variables_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ teardown (void)

START_TEST (sanitize_variables)
{
// given
/* given */
vfs_path_t * filename_vpath;
char *actual_string;
const char *expected_string;
Expand All @@ -82,12 +82,12 @@ START_TEST (sanitize_variables)
current_panel->dir.list[2].f.marked = TRUE;
current_panel->count = 3;

// when
/* when */
filename_vpath = vfs_path_from_str("/tmp/blabla.txt");
actual_string = exec_get_export_variables (filename_vpath);
vfs_path_free (filename_vpath);

// then
/* then */
expected_string = "\
MC_EXT_FILENAME=/tmp/blabla.txt\n\
export MC_EXT_FILENAME\n\
Expand Down

0 comments on commit 9423f3f

Please sign in to comment.