Skip to content

Commit

Permalink
Do not rely on /usr/include existing in test (#5133)
Browse files Browse the repository at this point in the history
  • Loading branch information
RMGiroux authored and GitHub Enterprise committed Jan 14, 2025
1 parent bf0ea87 commit 1c047e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions groups/bal/balcl/balcl_commandline.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2580,13 +2580,13 @@ int main(int argc, const char *argv[])
// Valid directory name, invalid input file.

#ifdef BSLS_PLATFORM_OS_UNIX
#define VALID_DN "/usr/include"
#define VALID_DN "/usr"
#else
#define VALID_DN "c:/windows"
#endif

ASSERT(bdls::FilesystemUtil::isRegularFile(VALID_FN));
ASSERT(bdls::FilesystemUtil::isDirectory(VALID_DN));
ASSERTV(VALID_FN, bdls::FilesystemUtil::isRegularFile(VALID_FN));
ASSERTV(VALID_DN, bdls::FilesystemUtil::isDirectory(VALID_DN));

static const struct Data {
int d_line;
Expand Down

0 comments on commit 1c047e5

Please sign in to comment.