Skip to content

Commit

Permalink
Rename library to rtcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Jun 3, 2024
1 parent 706ea6d commit a46580a
Show file tree
Hide file tree
Showing 42 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.20)
project(lib_rt_check)
project(rtcheck)

set(CMAKE_CTEST_ARGUMENTS "--build-and-test;${CMAKE_SOURCE_DIR};${CMAKE_BINARY_DIR};--build-generator;${CMAKE_GENERATOR};--test-command;ctest")
enable_testing()
Expand Down
10 changes: 5 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#cmake_minimum_required(VERSION 3.20)
#project(lib_rt_check)
#project(rtcheck)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

#======================================
add_library(rt_check SHARED
lib_rt_check.cpp
add_library(rtcheck SHARED
rtcheck.cpp
)

target_include_directories(rt_check
target_include_directories(rtcheck
PUBLIC
.
)

target_link_libraries(rt_check
target_link_libraries(rtcheck
pthread
dl
)
4 changes: 2 additions & 2 deletions src/lib_rt_check.cpp → src/rtcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <cxxabi.h>
#endif

#include "lib_rt_check.h"
#include "rtcheck.h"
#include "interception.h"

namespace rtc
Expand Down Expand Up @@ -637,6 +637,6 @@ INTERCEPTOR(void, os_unfair_lock_lock, os_unfair_lock_t lock)
__attribute__((constructor))
void init()
{
printf ("Hello librt_check!\n");
printf ("Hello rtcheck!\n");
rtc::has_initialised = true;
}
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ foreach(file ${test_files})
)

target_link_libraries(${test_name}
rt_check
rtcheck
)

if (${CMAKE_SYSTEM_NAME} STREQUAL Linux)
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_calloc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <lib_rt_check.h>
#include <rtcheck.h>
#include <memory>

int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_custom_function.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <lib_rt_check.h>
#include <rtcheck.h>

void my_func()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_false_mutex_unique_lock_uncontended.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <mutex>
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

void sleep_non_realtime()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_false_mutex_unique_try_lock_uncontended.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <mutex>
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

void sleep_non_realtime()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_file_size.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <filesystem>
#include <lib_rt_check.h>
#include <rtcheck.h>


int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_free.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <lib_rt_check.h>
#include <rtcheck.h>
#include <memory>

int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_large_atomic.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <atomic>
#include <lib_rt_check.h>
#include <rtcheck.h>

struct doubles
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_large_function.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <functional>
#include <lib_rt_check.h>
#include <rtcheck.h>

struct doubles
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_large_thread_local.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

#if __APPLE__
int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_malloc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <lib_rt_check.h>
#include <rtcheck.h>
#include <memory>


Expand Down
2 changes: 1 addition & 1 deletion tests/fail_mmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_munmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_mutex_lock.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <mutex>
#include <lib_rt_check.h>
#include <rtcheck.h>


int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_mutex_unique_lock_contended.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <mutex>
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

void sleep_non_realtime()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_mutex_unique_try_lock_contended.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <mutex>
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

void sleep_non_realtime()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_mutex_unlock.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <mutex>
#include <lib_rt_check.h>
#include <rtcheck.h>


int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_nanosleep.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <unistd.h>
#include <time.h>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_posix_memalign.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdlib.h>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_read_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <fstream>
#include <vector>

#include <lib_rt_check.h>
#include <rtcheck.h>


int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_realloc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <lib_rt_check.h>
#include <rtcheck.h>
#include <memory>

int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_reallocf.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <memory>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_shared_mutex_shared_lock_contended.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <shared_mutex>
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

void sleep_non_realtime()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_shared_mutex_shared_lock_uncontended.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <shared_mutex>
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

void sleep_non_realtime()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_sleep.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <unistd.h>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_stdsleep.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <chrono>
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_syscall.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <unistd.h>
#include <sys/syscall.h>
#include <lib_rt_check.h>
#include <rtcheck.h>


int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_thread_create.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_thread_join.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <thread>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_throw_exception.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdexcept>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_usleep.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <unistd.h>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_valloc.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <memory>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/fail_vector.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <vector>

#include <lib_rt_check.h>
#include <rtcheck.h>


int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/ignoring/pass_malloc_ignore.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <memory>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ignoring/pass_memory_ignore.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <memory>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/pass_nothrow_exception.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdexcept>
#include <lib_rt_check.h>
#include <rtcheck.h>

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/pass_small_atomic.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <cassert>
#include <atomic>
#include <lib_rt_check.h>
#include <rtcheck.h>


int main()
Expand Down
2 changes: 1 addition & 1 deletion tests/pass_small_function.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <functional>
#include <lib_rt_check.h>
#include <rtcheck.h>

struct doubles
{
Expand Down

0 comments on commit a46580a

Please sign in to comment.