Skip to content

Commit

Permalink
Test programs: Belated change of inclusion spec: Due to the movement …
Browse files Browse the repository at this point in the history
…of the source files into a library-specific subdirectory, as per #58, there is no longer the risk of clashing with glibc's `printf.h`, so the test programs can use `<foo.h>`-style inclusion rather than `"../path/to/foo.h"`-style.
  • Loading branch information
eyalroz committed Jan 31, 2022
1 parent 95b37bd commit 624118a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions test/aliasing.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#include <printf_config.h>

// Note: If we include <printf.h>, that will likely get us the
// the file /usr/include/printf.h on Linux systems
#include "../src/printf/printf.h"
#include <printf/printf.h>

int strcmp_(const char* lhs, const char* rhs)
{
Expand Down
3 changes: 1 addition & 2 deletions test/test_suite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
///////////////////////////////////////////////////////////////////////////////

#define PRINTF_VISIBILITY static
// use functions in own test namespace to avoid stdio conflicts
#include "../src/printf/printf.c"
#include <printf/printf.c>

// use the 'catch' test framework
#define CATCH_CONFIG_MAIN
Expand Down

0 comments on commit 624118a

Please sign in to comment.