mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-21 03:55:04 +00:00
base: remove cap_integrity test (fix #1536)
This commit is contained in:
parent
5fc8ed3e6b
commit
28804e2bfb
@ -1,37 +0,0 @@
|
||||
/*
|
||||
* \brief Testing capability integrity
|
||||
* \author Christian Prochaska
|
||||
* \author Alexander Boettcher
|
||||
* \date 2012-02-10
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2008-2013 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#include <base/env.h>
|
||||
#include <log_session/connection.h>
|
||||
|
||||
using namespace Genode;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
printf("--- capability integrity test ---\n");
|
||||
/* try the first 1000 local name IDs */
|
||||
for (unsigned local_name = 0; local_name < 1000; local_name++) {
|
||||
Native_capability ram_cap = env()->ram_session_cap();
|
||||
Log_session_capability log_session_cap =
|
||||
reinterpret_cap_cast<Log_session>(ram_cap);
|
||||
Log_session_client log_session_client(log_session_cap);
|
||||
try {
|
||||
log_session_client.write("test message");
|
||||
} catch(...) { }
|
||||
}
|
||||
|
||||
printf("--- finished capability integrity test ---\n");
|
||||
return 0;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
TARGET = test-cap_integrity
|
||||
SRC_CC = main.cc
|
||||
LIBS = base
|
@ -1,36 +0,0 @@
|
||||
/*
|
||||
* \brief Testing capability integrity
|
||||
* \author Christian Prochaska
|
||||
* \date 2012-02-10
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2008-2013 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#include <base/env.h>
|
||||
#include <log_session/connection.h>
|
||||
|
||||
using namespace Genode;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
printf("--- capability integrity test ---\n");
|
||||
|
||||
/* try the first 1000 local name IDs */
|
||||
for (int local_name = 0; local_name < 1000; local_name++) {
|
||||
Log_session_capability log_session_cap =
|
||||
reinterpret_cap_cast<Log_session>(Native_capability(env()->ram_session_cap().dst(), local_name));
|
||||
Log_session_client log_session_client(log_session_cap);
|
||||
try {
|
||||
log_session_client.write("test message");
|
||||
} catch(...) { }
|
||||
}
|
||||
|
||||
printf("--- finished capability integrity test ---\n");
|
||||
return 0;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
TARGET = test-cap_integrity
|
||||
SRC_CC = main.cc
|
||||
LIBS = base
|
Loading…
Reference in New Issue
Block a user