Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c1de576b
Commit
c1de576b
authored
Feb 08, 2008
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port to OSX for some tests.
git-svn-id:
file:///svn/tokudb@2187
c7de825b-a66e-492c-adef-691d508d4ae1
parent
4fda0a00
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
src/tests/Makefile
src/tests/Makefile
+3
-1
src/tests/test_error.c
src/tests/test_error.c
+5
-1
src/tests/test_thread_insert.c
src/tests/test_thread_insert.c
+5
-1
No files found.
src/tests/Makefile
View file @
c1de576b
...
...
@@ -13,6 +13,7 @@ endif
ifeq
($(OSX),OSX)
#Note: OSX 10.4 needs DYLD_LIBRARY_PATH. OSX 10.5 claims to support -rpath.
CFLAGS
=
-DOSX
LIBEXT
=
dylib
VGRIND
=
BDB_SUPPRESSIONS
=
...
...
@@ -20,6 +21,7 @@ ifeq ($(OSX),OSX)
SETTOKUENV
=
export
DYLD_LIBRARY_PATH
=
..
;
UNSETTOKUENV
=
unset
DYLD_LIBRARY_PATH
;
else
CFLAGS
=
SETTOKUENV
=
UNSETTOKUENV
=
LIBEXT
=
so
...
...
@@ -40,7 +42,7 @@ endif
LIBNAME
=
libdb.
$(LIBEXT)
# GCOV_FLAGS = -fprofile-arcs -ftest-coverage
CFLAGS
=
-Wall
-Werror
$(OPTFLAGS)
-g
$(GCOV_FLAGS)
CFLAGS
+
=
-Wall
-Werror
$(OPTFLAGS)
-g
$(GCOV_FLAGS)
TDB_CPPFLAGS
=
-I
../../include
...
...
src/tests/test_error.c
View file @
c1de576b
...
...
@@ -17,6 +17,10 @@ void handle_error (const DB_ENV *dbenv, const char *errpfx, const char *msg) {
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
parse_args
(
argc
,
argv
);
#if defined(OSX)
if
(
verbose
)
printf
(
"Warning: fmemopen does not exist in OSX!
\n
"
);
#else
system
(
"rm -rf "
DIR
);
int
r
=
mkdir
(
DIR
,
0777
);
assert
(
r
==
0
);
...
...
@@ -59,6 +63,6 @@ int main (int argc, const char *argv[]) {
}
}
}
#endif
return
0
;
}
src/tests/test_thread_insert.c
View file @
c1de576b
...
...
@@ -6,7 +6,11 @@
#include <sys/stat.h>
#include <arpa/inet.h>
#include <db.h>
#include <syscall.h>
#if defined(OSX)
#include <sys/syscall.h>
#else
#include <syscall.h>
#endif
#include <pthread.h>
#include "test.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment