Skip to content

Commit

Permalink
- Allow running as root when running in testsuite mode
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6238 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Sep 27, 2010
1 parent d05440a commit 87fb99e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Compiler/runtime/rtopts.h
Expand Up @@ -33,5 +33,6 @@

int check_debug_flag(char const* strdata);
int accept_meta_modelica_grammar(void);
extern int running_testsuite;

#endif
3 changes: 2 additions & 1 deletion Compiler/runtime/systemimpl.c
Expand Up @@ -53,6 +53,7 @@
#include "systemimpl.h"
#include "rml.h"
#include "config.h"
#include "rtopts.h"

/*
* Platform specific includes and defines
Expand Down Expand Up @@ -2497,7 +2498,7 @@ char* normalizePath(const char* src)

RML_BEGIN_LABEL(System__userIsRoot)
{
rmlA0 = mk_icon(geteuid() == 0 ? 1 : 0);
rmlA0 = mk_icon(geteuid() == 0 && running_testsuite == 0 ? 1 : 0);
RML_TAILCALLK(rmlSC);
}
RML_END_LABEL
Expand Down

0 comments on commit 87fb99e

Please sign in to comment.