[System][Non-ACR][Fix Tizen.System.Manual.Tests to avoid crash 22/216322/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 23 Oct 2019 10:10:40 +0000 (19:10 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 23 Oct 2019 10:10:48 +0000 (19:10 +0900)
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Core was generated by `/opt/usr/globalapps/Tizen.System.Manual.Tests/bin/Tizen.System.Manual.Tests.dll'.
Program terminated with signal SIGABRT, Aborted.
[Current thread is 1 (LWP 19445)]
(gdb) bt
    at /usr/src/debug/coreclr-3.0.0/src/pal/src/thread/process.cpp:1480
    at /usr/src/debug/coreclr-3.0.0/src/vm/eepolicy.cpp:511
    pszMessage=0xb8968978 u"A callback was made on a garbage collected delegate of type 'Tizen.System.Storage!Interop+Storage+StorageS
tateChangedCallback::Invoke'.", pExceptionInfo=0xbee96a40, errorSource=0x0, argExceptionString=<optimized out>)
    at /usr/src/debug/coreclr-3.0.0/src/vm/eepolicy.cpp:1213
    at /usr/src/debug/coreclr-3.0.0/src/vm/dllimportcallback.cpp:1021
    fsuuid=0xb8a086a8 "7076-0F0C", mountpath=0xb89f4b60 "/opt/media/SDCardA", primary=true, flags=0, user_data=0x0)
    at /usr/src/debug/libstorage-1.0.0/src/storage.c:367
    at /usr/src/debug/libstorage-1.0.0/src/storage-external.c:248
    at /usr/src/debug/libstorage-1.0.0/src/storage-external-dbus.c:443
    signal=0xad904cf0 "DeviceRemoved", params=0xad907050, user_data=0x0)
    at /usr/src/debug/libstorage-1.0.0/src/storage-external-dbus.c:488

Change-Id: I9ac48e88bb543daffaa0add974fb2dbdafc4d3ea
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
tct-suite-vs/Tizen.System.Manual.Tests/testcase/TSStorage.cs

index dcad9a2..2fec3b4 100644 (file)
@@ -82,12 +82,6 @@ namespace Tizen.System.Tests
 
                 // need to manually change state of any external storage
                 await ManualTest.WaitForConfirm();
-
-
-                foreach (var storage in StorageManager.Storages)
-                {
-                    storage.StorageStateChanged -= callback;
-                }
             } else
                 Assert.Pass("Test skipped! The external storage is Not available");
         }