Unsolved Tests crash because of lack of administrator rights on MinGW.
-
Hello.
Scince recently some my tests begin to crash when I use MinGW. In the same time there is no problem when I use MSVC. Also I can run tests with MinGW if Qt Creator was started with administrator rights.
What's the problem? How can I avoid that?
Thanks. -
@HostGhost said in Tests crash because of lack of administrator rights on MinGW.:
What's the problem?
What are these failing tests doing? You need to provide more information, else only guessing is possible.
-
@jsulm,
This tests do absolutely different things. As I understand, they try to write something to internal memory of pc and so they need this rights, but they're not supposed to do that. It can be usual unit or integration test. -
@HostGhost said in Tests crash because of lack of administrator rights on MinGW.:
internal memory
What internal memory?
Is there any error message if they crash? It is really unclear what is happening. -
@jsulm,
I mean... disk "C:\", for example. :)
No, there is no error message - only "failed to start project test", "FATAL" result and command line information. And after that I have to restart creator because of tests stop responding so I can't stop them. Also, if I try to debug that tests, windows asks for administrator rights, but it's not help if I give them: result the same. Only when I run creator with administartor rights I can run this tests. Or if I use MSVC instead of MinGW. -
@HostGhost Where on the hard disk is your project located? And where is the build directory?
Do you have active anti-virus software running? -
@jsulm,
project location: "C:\my_folder_1\my_folder_2\project_name\built-..."
Yes I do, I have anti-virus, but it didn't help me to stop it. -
@HostGhost And your user has full (read/write/execute) access rights in that path?
-
Use a debugger, add some output to see what's going wrong.
-
@jsulm,
I gave full access rights, that didn't help. -
@Christian-Ehrlicher,
When I use debugger for that tests, windows asks for administrator rights, and then gdb stops responding.