Skip to content

Commit

Permalink
test/basic: test_extensions() -> test_gnu()
Browse files Browse the repository at this point in the history
Rename the test to be more descriptive about what we do. We test GNU C
extensions.

Signed-off-by: David Rheinsberg <[email protected]>
  • Loading branch information
dvdhrm committed Apr 7, 2021
1 parent 04fda95 commit 3ab849e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test-basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static void test_macros(void) {
}

#if defined(__GNUC__) || defined(__clang__)
static void test_extensions(void) {
static void test_gnu(void) {
CList e1 = C_LIST_INIT(e1), e2 = C_LIST_INIT(e2);

/* Test `c_list_flush()` in combination with cleanup attributes. */
Expand All @@ -212,7 +212,7 @@ static void test_extensions(void) {
assert(!c_list_is_linked(&e2));
}
#else
static void test_extensions(void) {
static void test_gnu(void) {
}
#endif

Expand All @@ -222,6 +222,6 @@ int main(void) {
test_splice();
test_flush();
test_macros();
test_extensions();
test_gnu();
return 0;
}

0 comments on commit 3ab849e

Please sign in to comment.